/*
 * @Description:while
 * @Author: rendc
 * @Date: 2022-09-05 10:06:31
 * @LastEditors: rendc
 * @LastEditTime: 2022-09-05 10:10:22
 */
// while-do
let i = 1; //let也是声明变量的关键字 比var符合常理一些
while (i < 5) {
  console.log("hello-while");
  i++;
}
// do-while
let n = 0;
do {
  console.log("hello-do-while");
  n++;
} while (n < 5)